package cn.dust.design.pattern.structural.flyweight;

/**
 * @Author: dust
 * @Date: 2019/11/26 21:46
 */
public class Test {

    private static final String departments[]={"RNG","EDG","IG","FPX"};


    public static void main(String[] args) {
        for(int i=0;i<10;i++){
            String department=departments[(int)(Math.random()*departments.length)];
            Manager manager= (Manager) EmployeeFactory.getManager(department);
            manager.report();
        }
    }


}
